/**
 * 计算器异常类
 * 
 * @author Zero
 *
 */
public class CalculatorException extends Exception {

	private static final long serialVersionUID = 5786090511033536817L;

	/**
	 * 计算器异常类有参构造
	 * 
	 * @param message 异常信息
	 */
	public CalculatorException(String message) {
		super(message);
	}

	/**
	 * 数学异常
	 * 
	 * @author Zero
	 *
	 */
	public static class MathException extends RuntimeException {

		private static final long serialVersionUID = 6541091414255405994L;

		public MathException(String message) {
			super(message);
		}
	}

	/**
	 * 空表达式异常
	 * 
	 * @author Zero
	 *
	 */
	public static class NullException extends RuntimeException {
		private static final long serialVersionUID = -8172843914582772654L;

		public NullException(String message) {
			super(message);
		}
	}

	/**
	 * 表达式异常(输入字串不是数学表达式)
	 * 
	 * @author Zero
	 *
	 */
	public static class ExpressionException extends RuntimeException {
		private static final long serialVersionUID = 1368139625831339726L;

		public ExpressionException(String message) {
			super(message);
		}
	}
}
